from Utils.router import router
from Utils.gy import kldata, shopmoney


@router.get('/gy/klpk',tags=['客流车流数据'],summary='当月每日车流客流')  #
async def get_klpk():
    data = kldata.get_monthkldata()
    kl = []
    for i in data:
        o = i[0]
        kl.append(o)
    day = shopmoney.days_cur_month()
    carinall = kldata.get_moonthpark()
    return {'day': day, 'insum': kl, 'carin': carinall}
